package com.hua.designpattern.behavioral.strategy;

public class Calculator {
	private StrategyInterface strategy;

	public Calculator(StrategyInterface strategy) {
		super();
		this.strategy = strategy;
	}

	public int getResult(int num1, int num2) {
		return strategy.doOperation(num1, num2);
	}
}
